package com.base.common.view.adapter.bean;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

import com.base.common.view.adapter.connector.BaseItemTypeInterface;

public class HeaderBean extends BaseObservable {

    private int itemType;
    private int state;
    private String stateContext;

    public HeaderBean() {
        itemType = BaseItemTypeInterface.TYPE_HEAD;
    }

    public HeaderBean(int itemType) {
        this.itemType = itemType;
    }

    public HeaderBean(int itemType, int state) {
        this.itemType = itemType;
        this.state = state;
    }

    public int getItemType() {
        return itemType;
    }

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    @Bindable
    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
        notifyPropertyChanged(com.base.common.BR.state);
    }


    public String getStateContext() {
        return stateContext;
    }

    public void setStateContext(String stateContext) {
        this.stateContext = stateContext;
    }

}